package com.hjm.project.posResponsedata.posResponsedata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hjm.project.posResponsedata.posResponsedata.mapper.PosResponsedataMapper;
import com.hjm.project.posResponsedata.posResponsedata.domain.PosResponsedata;
import com.hjm.project.posResponsedata.posResponsedata.service.IPosResponsedataService;
import com.hjm.common.utils.text.Convert;

/**
 * 终端应答Service业务层处理
 * 
 * @author LOVE
 * @date 2020-11-27
 */
@Service
public class PosResponsedataServiceImpl implements IPosResponsedataService 
{
    @Autowired
    private PosResponsedataMapper posResponsedataMapper;

    /**
     * 查询终端应答
     * 
     * @param serial 终端应答ID
     * @return 终端应答
     */
    @Override
    public PosResponsedata selectPosResponsedataById(Long serial)
    {
        return posResponsedataMapper.selectPosResponsedataById(serial);
    }

    /**
     * 查询终端应答列表
     * 
     * @param posResponsedata 终端应答
     * @return 终端应答
     */
    @Override
    public List<PosResponsedata> selectPosResponsedataList(PosResponsedata posResponsedata)
    {
        return posResponsedataMapper.selectPosResponsedataList(posResponsedata);
    }

    /**
     * 新增终端应答
     * 
     * @param posResponsedata 终端应答
     * @return 结果
     */
    @Override
    public int insertPosResponsedata(PosResponsedata posResponsedata)
    {
        return posResponsedataMapper.insertPosResponsedata(posResponsedata);
    }

    /**
     * 修改终端应答
     * 
     * @param posResponsedata 终端应答
     * @return 结果
     */
    @Override
    public int updatePosResponsedata(PosResponsedata posResponsedata)
    {
        return posResponsedataMapper.updatePosResponsedata(posResponsedata);
    }

    /**
     * 删除终端应答对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePosResponsedataByIds(String ids)
    {
        return posResponsedataMapper.deletePosResponsedataByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除终端应答信息
     * 
     * @param serial 终端应答ID
     * @return 结果
     */
    @Override
    public int deletePosResponsedataById(Long serial)
    {
        return posResponsedataMapper.deletePosResponsedataById(serial);
    }
}
